package com.tyk.bookstore.back.storage.model.result;


import com.tyk.bookstore.back.common.core.model.result.ResultEnum;

/**
 * @author tyk
 * @description 库存异常枚举
 */
public enum StockResultEnum implements ResultEnum {

    STOCK_NOT_FOUND(3_06_02_01, "库存记录不存在，请先将商品加入仓库"),
    STOCK_ALREADY_EXISTS(3_06_02_02, "库存记录已存在，请勿重复添加");

    private final Integer code;
    private final String msg;

    StockResultEnum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    @Override
    public Integer getCode() {
        return this.code;
    }

    @Override
    public String getMsg() {
        return this.msg;
    }
}
